{*
 * @license   GPLv3 Open Source
 *}

{$html->toolbar->title('##Joop Licenses##')}
{$html->toolbar->deleteList()}
{$html->toolbar->editList()}

{$html->toolbar->popup('add_license','Add license','new',400,350)}

<div style="float:left; width: 10%;">
	{include file='joopport/links.tpl'}
</div>

<div style="float:right; width: 90%;">
	<form name="adminForm" method="POST">
		<input type="hidden" name="checked" value="0"/>
		<input type="hidden" name="agora_task" value="joopport"/>
		<input type="hidden" name="task" value=""/>
		<input type="hidden" name="page" value="licenses"/>
		<input type="hidden" name="option" value="com_agora"/>
		<input type="hidden" name="boxchecked" value="0"/>
<fieldset>
		<legend>##Joop Licenses##</legend>
		<table class="adminlist">
			<thead>
				<tr>
					<th width="20">
						<input type="checkbox" name="toggle" value="" onclick="checkAll({$licenses|@count});" />
					</th>
					<th>##Id##</th>
					<th>##Caption##</th>
					<th>##Description##</th>
					<th>##Expire date##</th>
				</tr>
			</thead>
			<tfoot>
				<tr><td colspan="5">{$pagination->getListFooter()}</td></tr>
			</tfoot>
			<tbody>
				{foreach from=$licenses item=lic key=num}
				<tr>
					<td>{$html->jhtml('grid.id', $num, $lic.id)}</td>
					<td>{$lic.id}</td>
					<td><a href="{url task=joopport page=licenses action=edit cid=$lic.id}">{$lic.license}</a></td>
					<td>{$lic.description}</td>
					<td>{$lic.license_date}</td>
				</tr>
				{foreachelse}
				<tr>
					<td colspan="5" align="center">##No licenses##</td>
				</tr>
				{/foreach}
			</tbody>
		</table>
		</fieldset>
	</form>
</div>